/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package limousine.struts.form;

import limousine.vo.*;
import java.io.Serializable;
import java.util.Date;
import org.apache.struts.action.ActionForm;

/**
 *
 * @author Neo
 */
public class DriverForm extends ActionForm implements Serializable {
    private static final long serialVersionUID = 1739307942911071862L;
    
    private String driverId;
    private String driverName;
    private Integer driverType;
    private Integer driverRate;
    private Integer perType;
    private String accountNo;
    private String bank;
    private Integer isActive;
    private String createBy;
    private Date createDate;
    private String updateBy;
    private Date updateDate;

    public DriverForm() {
    }

    public DriverForm(String driverId) {
        this.driverId = driverId;
    }

    public DriverForm(String driverId, Date createDate, Date updateDate) {
        this.driverId = driverId;
        this.createDate = createDate;
        this.updateDate = updateDate;
    }

    public String getDriverId() {
        return driverId;
    }

    public void setDriverId(String driverId) {
        this.driverId = driverId;
    }

    public String getDriverName() {
        return driverName;
    }

    public void setDriverName(String driverName) {
        this.driverName = driverName;
    }

    public Integer getDriverType() {
        return driverType;
    }

    public void setDriverType(Integer driverType) {
        this.driverType = driverType;
    }

    public Integer getDriverRate() {
        return driverRate;
    }

    public void setDriverRate(Integer driverRate) {
        this.driverRate = driverRate;
    }

    public Integer getPerType() {
        return perType;
    }

    public void setPerType(Integer perType) {
        this.perType = perType;
    }

    public String getAccountNo() {
        return accountNo;
    }

    public void setAccountNo(String accountNo) {
        this.accountNo = accountNo;
    }

    public String getBank() {
        return bank;
    }

    public void setBank(String bank) {
        this.bank = bank;
    }

    public Integer getIsActive() {
        return isActive;
    }

    public void setIsActive(Integer isActive) {
        this.isActive = isActive;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (driverId != null ? driverId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof DriverForm)) {
            return false;
        }
        DriverForm other = (DriverForm) object;
        if ((this.driverId == null && other.driverId != null) || (this.driverId != null && !this.driverId.equals(other.driverId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "limousine.vo.Dirver[driverId=" + driverId + "]";
    }

}
